import * as ajax from "../../common/ajax";

export const get = id => ajax.pureGet("/leader/budget/" + id);

export const update = entity => ajax.put("/leader/budget", entity);

export const getPageCount = (eventName, memberName) =>
  ajax.get("/leader/budget/page/count", {
    eventName: eventName,
    memberName: memberName
  });

export const getPage = (index, eventName, memberName) =>
  ajax.get("/leader/budget/page/" + index, {
    eventName: eventName,
    memberName: memberName
  });

export const pageSize = 20;
